package com.siyao.redvip.utils;

import java.io.File;

import android.os.Environment;

/**
 * 系统常量类
 * @author lenovo
 *
 */
public class Constants {

    // sd卡上文件夹的路径
    public final static String APP_ON_SD_PATH = "redvip" + File.separatorChar;
    // 缓存存储路径
    public final static String APP_FILE_DIR = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separatorChar + APP_ON_SD_PATH;

    //APK
    public final static String APK_CACHE_DIR = APP_FILE_DIR + "apk" + File.separatorChar;
    // ImageLoad
    public final static String IMAGE_CACHE_DIR = APP_FILE_DIR + "imagecache" + File.separatorChar;
    //Log
    public final static String LOG_CACHE_DIR = APP_FILE_DIR + "log" + File.separatorChar;
    
    // 个人主页照片更改
    public static final String PERSONAL_IMG_CHANGE_REQCODE = "PERSONAL_IMG_CHANGE_REQCODE";
    
    /*
     * 本地头像换图路径
     */
    public final static String SAVE_USER_HAEDER = APP_FILE_DIR + "aieravatar" + File.separatorChar;

    // 图片缓存存储路径
    public final static String SAVE_IMAGE_PATH_IMGS = APP_FILE_DIR + "imgs" + File.separatorChar;
    
    // 图片选择
    public static final int TACKPHOTO = 1;// 拍照
    public static final int CHOOSE_PHOTOS = 2;// 相册选择
    public static final int CHOOSE_SINGLE_PHOTO = 3;// 单张图片选择
    public static final int PHOTO_COMPASS_SUCCESS = 4;// 图片压缩
    public static final int CHOOSE_SINGLE_PHOTO_SUCCESS = 5;// 单张图片选择成功
    public static final int EDIT_PHOTOS = 6;// 相册选择
    
    // 图片详情
    public final static int IMAGEDITAL = 9909;

    public static final int REQUESTCODE_UPLOADAVATAR_CAMERA = 1;// 拍照修改头像
    public static final int REQUESTCODE_UPLOADAVATAR_LOCATION = 2;// 本地相册修改头像
    public static final int REQUESTCODE_UPLOADAVATAR_CROP = 3;// 系统裁剪头像

    public static final int REQUESTCODE_TAKE_CAMERA = 0x000001;// 拍照
    public static final int REQUESTCODE_TAKE_LOCAL = 0x000002;// 本地图片
    public static final int REQUESTCODE_TAKE_LOCATION = 0x000003;// 位置
    
    // 数据库名字
    public static final String DB_NAME = "REDVIP";

    public static final int uploadHeadimgOK = 2212;
    public static final int uploadHeadimgFaild = 2211;

    public static final int ZIP_FAILD = 676;
    public static final int UPLOAD_SUCCESS = 677;
    public static final int UPLOAD_FAILD = 678;
    
    public static final int DEFAULT_IMAGE_MAX_SIZE=2;
    
 // 修改图片
    public static final String EDIT_IMG_REQCODE = "EDIT_IMG_REQCODE";
    

}
